/*
    Copyright (C) 2009 Giacomo Spigler

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License along
    with this program; if not, write to the Free Software Foundation, Inc.,
    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/



#define GABOR_W 3
#define GABOR_SZ 7


__constant__ float gabor0[7][7] = { {0.0888158754, -0.164724812, -0.0464887246, 0.245584160, -0.0464887246, -0.164724812, 0.0888158754}, {0.0912865400, -0.169635937, -0.0479574278, 0.252619088, -0.0479574278, -0.169635937, 0.0912865400}, {0.0928033292, -0.172650963, -0.0488590933, 0.256937981, -0.0488590933, -0.172650963, 0.0928033292}, {0.0933147594, -0.173667580, -0.0491631180, 0.258394212, -0.0491631180, -0.173667580, 0.0933147594}, {0.0928033292, -0.172650963, -0.0488590933, 0.256937981, -0.0488590933, -0.172650963, 0.0928033292}, {0.0912865400, -0.169635937, -0.0479574278, 0.252619088, -0.0479574278, -0.169635937, 0.0912865400}, {0.0888158754, -0.164724812, -0.0464887246, 0.245584160, -0.0464887246, -0.164724812, 0.0888158754} };


__constant__ float gabor45[7][7] = { {0.0109184794, 0.103900656, 0.0450755134, -0.150685266, -0.179981560, 0.0589271970, 0.216725960}, {0.103900656, 0.0456844270, -0.154006913, -0.186019346, 0.0620562211, 0.229982272, 0.0589271970}, {0.0450755134, -0.154006913, -0.188078597, 0.0636754483, 0.238309056, 0.0620562211, -0.179981560}, {-0.150685266, -0.186019346, 0.0636754483, 0.241148993, 0.0636754483, -0.186019346, -0.150685266}, {-0.179981560, 0.0620562211, 0.238309056, 0.0636754483, -0.188078597, -0.154006913, 0.0450755134}, {0.0589271970, 0.229982272, 0.0620562211, -0.186019346, -0.154006913, 0.0456844270, 0.103900656}, {0.216725960, 0.0589271970, -0.179981560, -0.150685266, 0.0450755134, 0.103900656, 0.0109184794} };


__constant__ float gabor90[7][7] = { {0.0888158754, 0.0912865400, 0.0928033292, 0.0933147594, 0.0928033292, 0.0912865400, 0.0888158754}, {-0.164724812, -0.169635937, -0.172650963, -0.173667580, -0.172650963, -0.169635937, -0.164724812}, {-0.0464887246, -0.0479574278, -0.0488590933, -0.0491631180, -0.0488590933, -0.0479574278, -0.0464887246}, {0.245584160, 0.252619088, 0.256937981, 0.258394212, 0.256937981, 0.252619088, 0.245584160}, {-0.0464887246, -0.0479574278, -0.0488590933, -0.0491631180, -0.0488590933, -0.0479574278, -0.0464887246}, {-0.164724812, -0.169635937, -0.172650963, -0.173667580, -0.172650963, -0.169635937, -0.164724812}, {0.0888158754, 0.0912865400, 0.0928033292, 0.0933147594, 0.0928033292, 0.0912865400, 0.0888158754} };


__constant__ float gabor135[7][7] = { {0.216725960, 0.0589271970, -0.179981560, -0.150685266, 0.0450755134, 0.103900656, 0.0109184794}, {0.0589271970, 0.229982272, 0.0620562211, -0.186019346, -0.154006913, 0.0456844270, 0.103900656}, {-0.179981560, 0.0620562211, 0.238309056, 0.0636754483, -0.188078597, -0.154006913, 0.0450755134}, {-0.150685266, -0.186019346, 0.0636754483, 0.241148993, 0.0636754483, -0.186019346, -0.150685266}, {0.0450755134, -0.154006913, -0.188078597, 0.0636754483, 0.238309056, 0.0620562211, -0.179981560}, {0.103900656, 0.0456844270, -0.154006913, -0.186019346, 0.0620562211, 0.229982272, 0.0589271970}, {0.0109184794, 0.103900656, 0.0450755134, -0.150685266, -0.179981560, 0.0589271970, 0.216725960} };



